<table class="table">
	<thead>
		<tr>
			<th>参数项</th>
			<th>参数值</th>
		</tr>
	</thead>
	<tbody>
		<?php if(isset($item) && $item){ ?>
			<?php foreach ($item->metadata as $key => $value) { ?>
				<tr>
					<th>
						<?php if(\Auth::get_user()->username == 'admin'){ ?>
							<input type="text" value="<?php echo $value->key; ?>">
						<?php }else{ ?>
							<?php echo $value->key; ?>
						<?php } ?>
						
					</th>
					<td><input type="text" value="<?php echo $value->value; ?>"></td>
				</tr>
			<?php }?>
		<?php }?>
	</tbody>
	<tfoot>
		<tr>
			<td></td>
			<td style="text-align: right;"><a class="btn btn-primary"><i class="fa fa-plus"></i></a></td>
		</tr>
	</tfoot>
</table>